// components/passs/passs.js
Component({
    options: {
        multipleSlots: true 
    },
    /**
     * 组件的属性列表
     */
    properties: {
        bgTransparent:{
            type:Boolean,
            value:false
        },
        bgColor:{
            type:String,
            value:'#fff'
        },
        isShadow:{
            type:Boolean,
            value:false
        }
    },

    /**
     * 组件的初始数据
     */
    data: {
        navBar:0,
        statusBar:0,
    },
    attached: function () {
        wx.getSystemInfo({
            success: res => {
                let statusBarHeight = res.statusBarHeight;
                let menuButtonRect =  wx.getMenuButtonBoundingClientRect()
                let navigationBarHeight = (menuButtonRect.top -  statusBarHeight) * 2+ menuButtonRect.height*2;
                this.setData({
                    navBar:navigationBarHeight,
                    statusBar:statusBarHeight
                })
            }
        });
    },
    /**
     * 组件的方法列表
     */
    methods: {

    }
})
